home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Tools
/
l-position
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
369b
|
21 lines
l-position type list
0-based
This function identifies the position of either note-lengths or rest-lengths making a list of integers.
(setq len1 (qlength '20-10101))
(setq len2 (qlength '((12-101) (20-10101))))
(l-position :note len1)
=> (0 2 4)
(l-position :rest len1)
=> (1 3)
(l-position :rest len2)
=> ((1) (1 3))
(l-position :note len2)
=> ((0 2) (0 2 4))